package com.whu.waterworks.action;

import java.util.ArrayList;
import java.util.List;

import com.opensymphony.xwork2.ActionSupport;
import com.whu.waterworks.model.WaterUser;
import com.whu.waterworks.service.WaterWorksUserService;

/**
 * @author cai
 * @date   2016-3-10
 */

public class GetAllUsers extends ActionSupport{
	private static final long serialVersionUID = -5491223291176739065L;
	WaterWorksUserService waterWorksUserService;
	List<WaterUser> waterUsers = new ArrayList<>();
	
	@Override
	public String execute() throws Exception {
		waterUsers=waterWorksUserService.getAllUsers();
		return SUCCESS;
	}

	public WaterWorksUserService getWaterWorksUserService() {
		return waterWorksUserService;
	}

	public void setWaterWorksUserService(WaterWorksUserService waterWorksUserService) {
		this.waterWorksUserService = waterWorksUserService;
	}

	public List<WaterUser> getWaterUsers() {
		return waterUsers;
	}

	public void setWaterUsers(List<WaterUser> waterUsers) {
		this.waterUsers = waterUsers;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}
}	
